package com.wbw.csnd_hd.common;

import lombok.Getter;

/**
 * 请求状态码的枚举类
 */
@Getter
public enum ResultEnum {
    SUCCESS(200,"请求成功"),
    SUCCESS_UPDATE(200,"更新成功"),
    FAIL(9000,"请求失败"),
    FAIL_NO_FIND(9001,"没有找到符合条件的数据"),
    FAIL_LOGIN(9002,"密码错误"),
    FAIL_NO_USERNAME(9003,"用户名不存在"),
    FAIL_UPDATE(9004,"更新失败"),
    FAIL_EXCEL(9005,"Excel导出失败")
    ;

    //  请求是否成功的状态码（只有200才是请求成功）
    private int code;
    //  提示信息
    private String msg;
    ResultEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
